﻿using System;
using System.IO;
namespace problem1
{
    internal class Program
    {
        const int COUNT = 1000;
        const int STARTOFNUMBER = 0;
        const int ENDOFNUMBER = 100;
        const string FILENAME = "D:\\Data.txt";
        /// <summary>
        /// 随机输出1000个数
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Random random= new Random();
            if (System.IO.File.Exists(FILENAME))File.Delete(FILENAME);
            using (StreamWriter writer = File.CreateText(FILENAME)) 
            {
                for (int i = 0; i < COUNT; i++) 
                {
                    int RandomNumber=random.Next(0,100);
                    writer.WriteLine(RandomNumber);
                }
            }
            Console.WriteLine("Task is over");
        }
    }
}
